b = load('BOY_as3.txt');
g = load('GIRL_as3.txt');

boy = zeros(18,18);
for ii=1:size(b,1)
  boy(b(ii,1),b(ii,2))=1;
  boy(b(ii,2),b(ii,1))=1;
end;

girl=zeros(18,18);
for ii=1:size(g,1)
  girl(g(ii,1),g(ii,2))=1;
  girl(g(ii,2),g(ii,1))=1;
end;

boy_eigen = eig(boy);
girl_eigen = eig(girl);

energy_boy = sum(abs(boy_eigen))
energy_girl = sum(abs(girl_eigen))

clear b g boy girl ii boy_eigen girl_eigen energy_boy energy_girl

